package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.CarrierInfoMapper;
import com.ruoyi.system.domain.CarrierInfo;
import com.ruoyi.system.service.ICarrierInfoService;

/**
 * 物流商信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-31
 */
@Service
public class CarrierInfoServiceImpl implements ICarrierInfoService 
{
    @Autowired
    private CarrierInfoMapper carrierInfoMapper;

    /**
     * 查询物流商信息
     * 
     * @param carrierNo 物流商信息主键
     * @return 物流商信息
     */
    @Override
    public CarrierInfo selectCarrierInfoByCarrierNo(String carrierNo)
    {
        return carrierInfoMapper.selectCarrierInfoByCarrierNo(carrierNo);
    }

    /**
     * 查询物流商信息列表
     * 
     * @param carrierInfo 物流商信息
     * @return 物流商信息
     */
    @Override
    public List<CarrierInfo> selectCarrierInfoList(CarrierInfo carrierInfo)
    {
        return carrierInfoMapper.selectCarrierInfoList(carrierInfo);
    }

    /**
     * 新增物流商信息
     * 
     * @param carrierInfo 物流商信息
     * @return 结果
     */
    @Override
    public int insertCarrierInfo(CarrierInfo carrierInfo)
    {
        return carrierInfoMapper.insertCarrierInfo(carrierInfo);
    }

    /**
     * 修改物流商信息
     * 
     * @param carrierInfo 物流商信息
     * @return 结果
     */
    @Override
    public int updateCarrierInfo(CarrierInfo carrierInfo)
    {
        return carrierInfoMapper.updateCarrierInfo(carrierInfo);
    }

    /**
     * 批量删除物流商信息
     * 
     * @param carrierNos 需要删除的物流商信息主键
     * @return 结果
     */
    @Override
    public int deleteCarrierInfoByCarrierNos(String[] carrierNos)
    {
        return carrierInfoMapper.deleteCarrierInfoByCarrierNos(carrierNos);
    }

    /**
     * 删除物流商信息信息
     * 
     * @param carrierNo 物流商信息主键
     * @return 结果
     */
    @Override
    public int deleteCarrierInfoByCarrierNo(String carrierNo)
    {
        return carrierInfoMapper.deleteCarrierInfoByCarrierNo(carrierNo);
    }
}
